package com.lb.design.pattern.decorator.v2;

/**
 * @author lb
 * @Title: BattercakeDecorator
 * @Description: TODO
 * @date 2019/03/19  17:07
 */
public class BattercakeDecorator extends Battercake {
    private Battercake battercake;

    public BattercakeDecorator(Battercake battercake) {
        this.battercake = battercake;
    }

    @Override
    protected String getBattercake() {
        return this.battercake.getBattercake();
    }

    @Override
    protected int getPrice() {
        return this.battercake.getPrice();
    }
}
